package com.lhkj.ct.meta.admin.converter;

import com.lhkj.ct.meta.admin.model.dto.RoleForm;
import com.lhkj.ct.meta.admin.model.entity.TblRole;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * 菜单对象转换器
 *
 * @author haoxr
 * @since 2022/7/29
 */
@Mapper(componentModel = "spring")
public interface RoleConverter{

    // 使用工厂方法获取对象实例
    RoleConverter INSTANCE = Mappers.getMapper(RoleConverter.class);

    TblRole convertForm2Role(RoleForm roleForm);

}
